<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/12/18
 * Time: 14:45
 */

namespace app\common\lib\exception;
use think\Exception;

class ApiException extends Exception
{
    public $message="";
    public $httpcode=500;
    public $code=0;
    /**
     * ApiException constructor.
     * @param string $message 抛出异常信息
     * @param int $httpcode httpcode状态码
     * @param int $code 业务码
     */
    public function __construct($message = "",$httpcode=0,$code = 0)
    {
        $this->message=$message;
        $this->httpcode=$httpcode;
        $this->code=$code;
    }
}